/**
 * 
 */
package edu.gtcfla.km.admin.appmodules.vo;

import java.io.Serializable;
import java.util.Date;

import org.vsg.biz.account.Module;
import org.vsg.common.web.jackson.JsonDateSerializer;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;

/**
 * @author Bill vison
 *
 */
public class ModuleEditionVO implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -888871549759401345L;

	private String vender;
	
	private String code;
	
	private String name;
	
	private String version;
	
	private String id;
	
	private Date releaseDate;
	
	private boolean disabled;
	
	
	public ModuleEditionVO () {
		
	}
	
	
	public ModuleEditionVO(Module module) {
		this.code = module.getCode();
		this.name = module.getName();
		this.vender = module.getDeveloper();
		this.id = module.getId();
		this.releaseDate = module.getReleaseDate();
		this.version = module.getVersion();
		this.disabled = module.getDisabled() == 1 ;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@JsonSerialize(using=JsonDateSerializer.class)		
	public Date getReleaseDate() {
		return releaseDate;
	}

	public void setReleaseDate(Date releaseDate) {
		this.releaseDate = releaseDate;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public boolean isDisabled() {
		return disabled;
	}

	public void setDisabled(boolean disabled) {
		this.disabled = disabled;
	}

	public String getVender() {
		return vender;
	}

	public void setVender(String vender) {
		this.vender = vender;
	}
	
	
	
	
}
